package cn.yunhe.service.impl;

import cn.yunhe.dao.RoleDao;
import cn.yunhe.entity.Role;
import cn.yunhe.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("roleService")
public class RoleServiceImpl implements RoleService {

    @Resource
    private RoleDao roleDao;

    @Override
    public Role getUserRole(int userId) {
        return roleDao.getUserRole(userId);
    }

    public RoleDao getRoleDao() {
        return roleDao;
    }

    public void setRoleDao(RoleDao roleDao) {
        this.roleDao = roleDao;
    }
}
